package com.redpack.redpost.struts.action;

//import java.text.SimpleDateFormat;
//import java.util.Date;
//import java.util.Locale;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;

import com.redpack.redpost.util.to.generalUtil;

public class codigoPostal extends Action {
	
	public ActionForward execute(
			ActionMapping mapping, 
			ActionForm form, 
			HttpServletRequest request, 
			HttpServletResponse response) throws Exception {
		
		String[][] estados = generalUtil.obtieneEstados();
		request.setAttribute("estados", estados);
		
		return mapping.findForward("success");
		
	}

}
